package god;

import java.util.Scanner;

public class J01Circle {
	public static double getArea(double a, double b) {
		double result;
		result = a * a * b;
		return result;
	}

	public static double getPerimeter(double a, double b) {
		double result;
		result = a * 2 * b;
		return result;
	}

	public static void main(String[] args) {
		final double PI = 3.14;
		double radius, area, perimeter;

		System.out.println("반지름을 입력해 주세요");
		Scanner sc = new Scanner(System.in);
		radius = sc.nextDouble();

		area = getArea(radius, PI);
		perimeter = getPerimeter(radius, PI);

		System.out.println("원의 면적 = " + area);
		System.out.println("원의 둘레 = " + perimeter);

		sc.close();
	}

}
